<?php

function mobile_service_services_resources() {
    $resources = array(
        'mobile_service_resources' => array(
            'actions' => array(
                'account_upgrade_step1' => array(//list
                    'help' => t('user upgrade.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service.account',
                    ),
                    'callback' => 'mobile_service_account_upgrade_step1',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => 'user_can_upgrade',
                ),
                'account_upgrade_step2' => array(//list
                    'help' => t('user upgrade.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service.account',
                    ),
                    'callback' => 'mobile_service_account_upgrade_step2',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => 'user_can_upgrade',
                ),
                'user_info_load' => array(//list
                    'help' => t('Gets the list of user info.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service.resource',
                    ),
                    'callback' => 'mobile_service_user_info',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit farmer'),//权限
                    'access arguments append' => TRUE,
                ),
                'retailstore_list' => array(//list
                    'help' => t('Gets the list of retailstores.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_retailstore.resource',
                    ),
                    'callback' => 'mobile_service_retailstore_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own retailstore'),//权限
                    'access arguments append' => TRUE,
                ),
                'retailstore_add' => array(
                    'help' => t('Add the list of retailstores.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_retailstore.resource',
                    ),
                    'callback' => 'mobile_service_retailstore_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own retailstore'),//权限
                    'access arguments append' => TRUE,
                ),
                'select_data_info' => array(//address_select
                    'help' => t('Gets the info.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service.resource',
                    ),
                    'callback' => 'mobile_service_get_select_data_info',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data type to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('access comments'),//权限
                    'access arguments append' => TRUE,
                ),
                'brand_sales_list' => array(//list
                    'help' => t('Gets the list of brand_sales.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_brand_sales.resource',
                    ),
                    'callback' => 'mobile_service_brand_sales_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own brand_sales'),//权限
                    'access arguments append' => TRUE,
                ),
                'brand_sales_add' => array(//list
                    'help' => t('insert brand sales.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_brand_sales.resource',
                    ),
                    'callback' => 'mobile_service_brand_sales_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own brand_sales'),//权限
                    'access arguments append' => TRUE,
                ),
                'capacity_list' => array(//list
                    'help' => t('Gets the list of capacity.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_capacity.resource',
                    ),
                    'callback' => 'mobile_service_capacity_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own capacity'),//权限
                    'access arguments append' => TRUE,
                ),
                'capacity_add' => array(//list
                    'help' => t('insert capacity.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_capacity.resource',
                    ),
                    'callback' => 'mobile_service_capacity_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own capacity'),//权限
                    'access arguments append' => TRUE,
                ),
                'competitors_list' => array(//list
                    'help' => t('Gets the list of competitors.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_competitors.resource',
                    ),
                    'callback' => 'mobile_service_competitors_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own competitors'),//权限
                    'access arguments append' => TRUE,
                ),
                'competitors_add' => array(//list
                    'help' => t('insert competitors.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_competitors.resource',
                    ),
                    'callback' => 'mobile_service_competitors_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own competitors'),//权限
                    'access arguments append' => TRUE,
                ),
                'distributor_list' => array(//list
                    'help' => t('Gets the list of distributor.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_distributor.resource',
                    ),
                    'callback' => 'mobile_service_distributor_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own distributor'),//权限
                    'access arguments append' => TRUE,
                ),
                'distributor_add' => array(//list
                    'help' => t('insert distributor.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_distributor.resource',
                    ),
                    'callback' => 'mobile_service_distributor_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own distributor'),//权限
                    'access arguments append' => TRUE,
                ),
                'employee_list' => array(//list
                    'help' => t('Gets the list of employee.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_employee.resource',
                    ),
                    'callback' => 'mobile_service_employee_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own employee'),//权限
                    'access arguments append' => TRUE,
                ),
                'employee_add' => array(//list
                    'help' => t('insert employee.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_employee.resource',
                    ),
                    'callback' => 'mobile_service_employee_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit employee'),//权限
                    'access arguments append' => TRUE,
                ),
                'farmer_list' => array(//list
                    'help' => t('Gets the list of farmer.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_farmer.resource',
                    ),
                    'callback' => 'mobile_service_farmer_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own farmer'),//权限
                    'access arguments append' => TRUE,
                ),
                'farmer_add' => array(//list
                    'help' => t('insert farmer.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_farmer.resource',
                    ),
                    'callback' => 'mobile_service_farmer_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own farmer'),//权限
                    'access arguments append' => TRUE,
                ),
                'farmer_register' => array(//list
                    'help' => t('register farmer.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_farmer.resource',
                    ),
                    'callback' => 'mobile_service_farmer_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('access comments'),//权限
                    'access arguments append' => TRUE,
                ),
                'plant_info_list' => array(//list
                    'help' => t('plant info.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_plant_info.resource',
                    ),
                    'callback' => 'mobile_service_plant_info_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own plant_info'),//权限
                    'access arguments append' => TRUE,
                ),
                'plant_info_add' => array(
                    'help' => t('Add the list of plant info.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_plant_info.resource',
                    ),
                    'callback' => 'mobile_service_plant_info_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own plant_info'),//权限
                    'access arguments append' => TRUE,
                ),
                'soil_info_list' => array(//list
                    'help' => t('soil info.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_soil_info.resource',
                    ),
                    'callback' => 'mobile_service_soil_info_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own soil_info'),//权限
                    'access arguments append' => TRUE,
                ),
                'soil_info_add' => array(
                    'help' => t('Add the list of soil info.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_soil_info.resource',
                    ),
                    'callback' => 'mobile_service_soil_info_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own soil_info'),//权限
                    'access arguments append' => TRUE,
                ),
                'fertilization_info_list' => array(//list
                    'help' => t('fertilization info.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_fertilization_info.resource',
                    ),
                    'callback' => 'mobile_service_fertilization_info_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own fertilization_info'),//权限
                    'access arguments append' => TRUE,
                ),
                'fertilization_info_add' => array(
                    'help' => t('Add the list of fertilization info.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_fertilization_info.resource',
                    ),
                    'callback' => 'mobile_service_fertilization_info_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own fertilization_info'),//权限
                    'access arguments append' => TRUE,
                ),
                'plant_structure_list' => array(//list
                    'help' => t('Gets the list of plant_structure.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_plant_structure.resource',
                    ),
                    'callback' => 'mobile_service_plant_structure_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own plant_structure'),//权限
                    'access arguments append' => TRUE,
                ),
                'distributor_list' => array(//list
                    'help' => t('Gets the list of distributor.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_distributor.resource',
                    ),
                    'callback' => 'mobile_service_distributor_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own distributor'),//权限
                    'access arguments append' => TRUE,
                ),
                'distributor_add' => array(
                    'help' => t('Add the list of distributors.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_distributor.resource',
                    ),
                    'callback' => 'mobile_service_distributor_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own distributor'),//权限
                    'access arguments append' => TRUE,
                ),
                'plant_structure_add' => array(//list
                    'help' => t('insert plant_structure.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_plant_structure.resource',
                    ),
                    'callback' => 'mobile_service_plant_structure_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own plant_structure'),//权限
                    'access arguments append' => TRUE,
                ),
                'stock_info_list' => array(//list
                    'help' => t('Gets the list of stock_info.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_stock_info.resource',
                    ),
                    'callback' => 'mobile_service_stock_info_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own stock_info'),//权限
                    'access arguments append' => TRUE,
                ),
                'stock_info_add' => array(//list
                    'help' => t('insert stock_info.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_stock_info.resource',
                    ),
                    'callback' => 'mobile_service_stock_info_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own stock_info'),//权限
                    'access arguments append' => TRUE,
                ),
                'stock_info_stats_list' => array(//list
                    'help' => t('Gets the list of stock info stats.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_stock_info.resource',
                    ),
                    'callback' => 'mobile_service_stock_info_stats_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view stock_info stats'),//权限
                    'access arguments append' => TRUE,
                ),
                'invoice_list' => array(//list
                    'help' => t('Gets the list of invoice.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_sales.resource',
                    ),
                    'callback' => 'mobile_service_invoice_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own invoice'),//权限
                    'access arguments append' => TRUE,
                ),
                'invoice_add' => array(//list
                    'help' => t('insert invoice.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_sales.resource',
                    ),
                    'callback' => 'mobile_service_invoice_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own invoice'),//权限
                    'access arguments append' => TRUE,
                ),
                'invoice_stats_list' => array(//list
                    'help' => t('Gets the list of invoice stats.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_sales.resource',
                    ),
                    'callback' => 'mobile_service_invoice_stats_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view invoice stats'),//权限
                    'access arguments append' => TRUE,
                ),
                'monthly_report_list' => array(//list
                    'help' => t('Gets the list of monthly_report.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_sales.resource',
                    ),
                    'callback' => 'mobile_service_monthly_report_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own monthly_report'),//权限
                    'access arguments append' => TRUE,
                ),
                'monthly_report_add' => array(//list
                    'help' => t('insert monthly_report.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_sales.resource',
                    ),
                    'callback' => 'mobile_service_monthly_report_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own monthly_report'),//权限
                    'access arguments append' => TRUE,
                ),
                'monthly_report_stats_list' => array(//list
                    'help' => t('Gets the list of monthly_report stats.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_sales.resource',
                    ),
                    'callback' => 'mobile_service_monthly_report_stats_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view monthly_report stats'),//权限
                    'access arguments append' => TRUE,
                ),
                'sales_log_list' => array(//list
                    'help' => t('Gets the list of sales_log.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_sales.resource',
                    ),
                    'callback' => 'mobile_service_sales_log_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own sales_log'),//权限
                    'access arguments append' => TRUE,
                ),
                'sales_log_add' => array(//list
                    'help' => t('insert sales_log.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_sales.resource',
                    ),
                    'callback' => 'mobile_service_sales_log_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own sales_log'),//权限
                    'access arguments append' => TRUE,
                ),
                'genuine_verification_list' => array(//list
                    'help' => t('Gets the list of genuine_verification.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_genuine_verification.resource',
                    ),
                    'callback' => 'mobile_service_genuine_verification_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t('data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('genuine verification'),//权限
                    'access arguments append' => TRUE,

                ),
                'village_activity_list' => array(//list
                    'help' => t('Gets the list of village_activity_list.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_village.resource',
                    ),
                    'callback' => 'mobile_service_village_activity_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own village'),//权限
                    'access arguments append' => TRUE,
                ),
                'village_activity_add' => array(//list
                    'help' => t('insert village_activity_add.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_village.resource',
                    ),
                    'callback' => 'mobile_service_village_activity_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' village_activity_add.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own village'),//权限
                    'access arguments append' => TRUE,
                ),
                'experts_work_list' => array(//list
                    'help' => t('Gets the list of experts_work_list.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_experts_work.resource',
                    ),
                    'callback' => 'mobile_service_experts_work_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' experts_work_list.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own experts_work'),//权限
                    'access arguments append' => TRUE,
                ),
                'experts_work_add' => array(//list
                    'help' => t('insert experts_work_add.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_experts_work.resource',
                    ),
                    'callback' => 'mobile_service_experts_work_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' experts_work_add.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own experts_work'),//权限
                    'access arguments append' => TRUE,
                ),
                'revisit_list' => array(//list
                    'help' => t('Gets the list of revisit_list.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_revisit.resource',
                    ),
                    'callback' => 'mobile_service_revisit_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t('revisit_list.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own revisit'),//权限
                    'access arguments append' => TRUE,
                ),
                'revisit_add' => array(//list
                    'help' => t('insert revisit_add.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_revisit.resource',
                    ),
                    'callback' => 'mobile_service_revisit_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' revisit_add.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own revisit'),//权限
                    'access arguments append' => TRUE,
                ),
                'fertilizer_case_list' => array(//list
                    'help' => t('Gets the list of fertilizer_case_list.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_fertilizer_case.resource',
                    ),
                    'callback' => 'mobile_service_fertilizer_case_list',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t('fertilizer_case_list.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('view own fertilizer_case'),//权限
                    'access arguments append' => TRUE,
                ),
                'fertilizer_case_add' => array(//list
                    'help' => t('insert fertilizer_case_add.'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service_fertilizer_case.resource',
                    ),
                    'callback' => 'mobile_service_fertilizer_case_add',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' fertilizer_case_add.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => '_drupalgap_resource_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'drupalgap',
                        'name' => 'drupalgap.resource',
                    ),
                    'access arguments' => array('edit own fertilizer_case'),//权限
                    'access arguments append' => TRUE,
                ),
                'delete_info' => array(//list
                    'help' => t('delete info'),//描述
                    'file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service.resource',
                    ),
                    'callback' => 'mobile_service_delete_info',//回调函数
                    'args' => array(
                        array(
                            'name'         => 'parameters',
                            'type'         => 'array',
                            'description'  => t(' data_count to pass.'),
                            'source'       => 'data',
                            'optional'     =>false,
                        ),
                    ),
                    'access callback' => 'mobile_anonymous_access',
                    'access callback file' => array(
                        'type' => 'inc',
                        'module' => 'mobile_service',
                        'name' => 'mobile_service.resource',
                    ),

                ),
            ),
        ),
    );
    return $resources;
}